package ctgu.junitTest;

import static org.junit.jupiter.api.Assertions.*;

import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;

import ctgu.java.MyLinkedList;
class MyLinkedListTest {

    
	@Test
    @DisplayName("路径1")
    void test1() {
        MyLinkedList<String> list = new MyLinkedList<>();
        list.add(null);
        System.out.print(list);
        assertEquals(true, list.remove(null));
    }
    
	
	@Test
    @DisplayName("路径2")
    void test2() {
        MyLinkedList<String> list = new MyLinkedList<>();
        list.add("hello");
        System.out.print(list);
        assertEquals(false, list.remove(null));
    }
    
	
	@Test
    @DisplayName("路径3")
    void test3() {
        MyLinkedList<String> list = new MyLinkedList<>();
        list.add("hello");
        System.out.print(list);
        assertEquals(true, list.remove("hello"));
    }
    
	
	@Test
    @DisplayName("路径4")
    void test4() {
        MyLinkedList<String> list = new MyLinkedList<>();
        list.add(null);
        System.out.print(list);
        assertEquals(false, list.remove("hello"));
    }
    
  

}